Optimal. Leaf size=213 \[ -\frac {\sqrt {b} \left (15 a^2-10 a b-b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{8 a^{3/2} (a+b)^4 d}+\frac {(a-5 b) \tanh ^{-1}(\cosh (c+d x))}{2 (a+b)^4 d}+\frac {(2 a-b) b \cosh (c+d x)}{4 a (a+b)^2 d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\left (4 a^2-9 a b-b^2\right ) \cosh (c+d x)}{8 a (a+b)^3 d \left (b+a \cosh ^2(c+d x)\right )}-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 (a+b) d \left (b+a \cosh ^2(c+d x)\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 213, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {4218, 481, 592,
541, 536, 212, 211} \begin {gather*} -\frac {\left (4 a^2-9 a b-b^2\right ) \cosh (c+d x)}{8 a d (a+b)^3 \left (a \cosh ^2(c+d x)+b\right )}-\frac {\sqrt {b} \left (15 a^2-10 a b-b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{8 a^{3/2} d (a+b)^4}+\frac {b (2 a-b) \cosh (c+d x)}{4 a d (a+b)^2 \left (a \cosh ^2(c+d x)+b\right )^2}-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 d (a+b) \left (a \cosh ^2(c+d x)+b\right )^2}+\frac {(a-5 b) \tanh ^{-1}(\cosh (c+d x))}{2 d (a+b)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 212
Rule 481
Rule 536
Rule 541
Rule 592
Rule 4218
Rubi steps
\begin {align*} \int \frac {\text {csch}^3(c+d x)}{\left (a+b \text {sech}^2(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {x^6}{\left (1-x^2\right )^2 \left (b+a x^2\right )^3} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 (a+b) d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\text {Subst}\left (\int \frac {x^2 \left (3 b+(-a+2 b) x^2\right )}{\left (1-x^2\right ) \left (b+a x^2\right )^3} \, dx,x,\cosh (c+d x)\right )}{2 (a+b) d}\\ &=\frac {(2 a-b) b \cosh (c+d x)}{4 a (a+b)^2 d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 (a+b) d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\text {Subst}\left (\int \frac {2 (2 a-b) b-2 \left (2 a^2-8 a b-b^2\right ) x^2}{\left (1-x^2\right ) \left (b+a x^2\right )^2} \, dx,x,\cosh (c+d x)\right )}{8 a (a+b)^2 d}\\ &=\frac {(2 a-b) b \cosh (c+d x)}{4 a (a+b)^2 d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\left (4 a^2-9 a b-b^2\right ) \cosh (c+d x)}{8 a (a+b)^3 d \left (b+a \cosh ^2(c+d x)\right )}-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 (a+b) d \left (b+a \cosh ^2(c+d x)\right )^2}+\frac {\text {Subst}\left (\int \frac {-2 (11 a-b) b^2+2 b \left (4 a^2-9 a b-b^2\right ) x^2}{\left (1-x^2\right ) \left (b+a x^2\right )} \, dx,x,\cosh (c+d x)\right )}{16 a b (a+b)^3 d}\\ &=\frac {(2 a-b) b \cosh (c+d x)}{4 a (a+b)^2 d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\left (4 a^2-9 a b-b^2\right ) \cosh (c+d x)}{8 a (a+b)^3 d \left (b+a \cosh ^2(c+d x)\right )}-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 (a+b) d \left (b+a \cosh ^2(c+d x)\right )^2}+\frac {(a-5 b) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{2 (a+b)^4 d}-\frac {\left (b \left (15 a^2-10 a b-b^2\right )\right ) \text {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,\cosh (c+d x)\right )}{8 a (a+b)^4 d}\\ &=-\frac {\sqrt {b} \left (15 a^2-10 a b-b^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{8 a^{3/2} (a+b)^4 d}+\frac {(a-5 b) \tanh ^{-1}(\cosh (c+d x))}{2 (a+b)^4 d}+\frac {(2 a-b) b \cosh (c+d x)}{4 a (a+b)^2 d \left (b+a \cosh ^2(c+d x)\right )^2}-\frac {\left (4 a^2-9 a b-b^2\right ) \cosh (c+d x)}{8 a (a+b)^3 d \left (b+a \cosh ^2(c+d x)\right )}-\frac {\cosh (c+d x) \coth ^2(c+d x)}{2 (a+b) d \left (b+a \cosh ^2(c+d x)\right )^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 2.79, size = 524, normalized size = 2.46 \begin {gather*} \frac {(a+2 b+a \cosh (2 (c+d x))) \text {sech}^5(c+d x) \left (-\frac {8 b^2 (a+b)^2}{a}+\frac {2 b (a+b) (9 a+b) (a+2 b+a \cosh (2 (c+d x)))}{a}+\frac {\sqrt {b} \left (-15 a^2+10 a b+b^2\right ) \text {ArcTan}\left (\frac {\left (\sqrt {a}-i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2}\right ) \sinh (c) \tanh \left (\frac {d x}{2}\right )+\cosh (c) \left (\sqrt {a}-i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2} \tanh \left (\frac {d x}{2}\right )\right )}{\sqrt {b}}\right ) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x)}{a^{3/2}}+\frac {\sqrt {b} \left (-15 a^2+10 a b+b^2\right ) \text {ArcTan}\left (\frac {\left (\sqrt {a}+i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2}\right ) \sinh (c) \tanh \left (\frac {d x}{2}\right )+\cosh (c) \left (\sqrt {a}+i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2} \tanh \left (\frac {d x}{2}\right )\right )}{\sqrt {b}}\right ) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x)}{a^{3/2}}-(a+b) (a+2 b+a \cosh (2 (c+d x)))^2 \text {csch}^2\left (\frac {1}{2} (c+d x)\right ) \text {sech}(c+d x)+4 (a-5 b) (a+2 b+a \cosh (2 (c+d x)))^2 \log \left (\cosh \left (\frac {1}{2} (c+d x)\right )\right ) \text {sech}(c+d x)-4 (a-5 b) (a+2 b+a \cosh (2 (c+d x)))^2 \log \left (\sinh \left (\frac {1}{2} (c+d x)\right )\right ) \text {sech}(c+d x)-(a+b) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}^2\left (\frac {1}{2} (c+d x)\right ) \text {sech}(c+d x)\right )}{64 (a+b)^4 d \left (a+b \text {sech}^2(c+d x)\right )^3} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.85, size = 350, normalized size = 1.64
method | result | size |
derivativedivides | \(\frac {\frac {\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{3}+24 a^{2} b +24 a \,b^{2}+8 b^{3}}-\frac {2 b \left (\frac {-\frac {\left (9 a^{3}-5 a^{2} b -13 a \,b^{2}+b^{3}\right ) \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {\left (27 a^{3}-21 a^{2} b +29 a \,b^{2}-3 b^{3}\right ) \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {\left (27 a^{3}+a^{2} b -23 a \,b^{2}+3 b^{3}\right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {9 a^{3}+17 a^{2} b +7 a \,b^{2}-b^{3}}{8 a}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {\left (15 a^{2}-10 a b -b^{2}\right ) \arctan \left (\frac {2 \left (a +b \right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a -2 b}{4 \sqrt {a b}}\right )}{16 a \sqrt {a b}}\right )}{\left (a +b \right )^{4}}-\frac {1}{8 \left (a +b \right )^{3} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+\frac {\left (-2 a +10 b \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 \left (a +b \right )^{4}}}{d}\) | \(350\) |
default | \(\frac {\frac {\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{3}+24 a^{2} b +24 a \,b^{2}+8 b^{3}}-\frac {2 b \left (\frac {-\frac {\left (9 a^{3}-5 a^{2} b -13 a \,b^{2}+b^{3}\right ) \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {\left (27 a^{3}-21 a^{2} b +29 a \,b^{2}-3 b^{3}\right ) \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {\left (27 a^{3}+a^{2} b -23 a \,b^{2}+3 b^{3}\right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {9 a^{3}+17 a^{2} b +7 a \,b^{2}-b^{3}}{8 a}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {\left (15 a^{2}-10 a b -b^{2}\right ) \arctan \left (\frac {2 \left (a +b \right ) \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a -2 b}{4 \sqrt {a b}}\right )}{16 a \sqrt {a b}}\right )}{\left (a +b \right )^{4}}-\frac {1}{8 \left (a +b \right )^{3} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+\frac {\left (-2 a +10 b \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 \left (a +b \right )^{4}}}{d}\) | \(350\) |
risch | \(-\frac {{\mathrm e}^{d x +c} \left (4 a^{3} {\mathrm e}^{10 d x +10 c}-9 a^{2} b \,{\mathrm e}^{10 d x +10 c}-a \,b^{2} {\mathrm e}^{10 d x +10 c}+20 a^{3} {\mathrm e}^{8 d x +8 c}+23 a^{2} b \,{\mathrm e}^{8 d x +8 c}-29 a \,b^{2} {\mathrm e}^{8 d x +8 c}+4 b^{3} {\mathrm e}^{8 d x +8 c}+40 a^{3} {\mathrm e}^{6 d x +6 c}+114 a^{2} b \,{\mathrm e}^{6 d x +6 c}+94 a \,b^{2} {\mathrm e}^{6 d x +6 c}-4 b^{3} {\mathrm e}^{6 d x +6 c}+40 a^{3} {\mathrm e}^{4 d x +4 c}+114 a^{2} b \,{\mathrm e}^{4 d x +4 c}+94 a \,b^{2} {\mathrm e}^{4 d x +4 c}-4 b^{3} {\mathrm e}^{4 d x +4 c}+20 a^{3} {\mathrm e}^{2 d x +2 c}+23 a^{2} b \,{\mathrm e}^{2 d x +2 c}-29 a \,b^{2} {\mathrm e}^{2 d x +2 c}+4 b^{3} {\mathrm e}^{2 d x +2 c}+4 a^{3}-9 a^{2} b -a \,b^{2}\right )}{4 a d \left (a +b \right )^{3} \left ({\mathrm e}^{2 d x +2 c}-1\right )^{2} \left (a \,{\mathrm e}^{4 d x +4 c}+2 a \,{\mathrm e}^{2 d x +2 c}+4 b \,{\mathrm e}^{2 d x +2 c}+a \right )^{2}}-\frac {\ln \left ({\mathrm e}^{d x +c}-1\right ) a}{2 d \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}+\frac {5 \ln \left ({\mathrm e}^{d x +c}-1\right ) b}{2 d \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}+\frac {\ln \left ({\mathrm e}^{d x +c}+1\right ) a}{2 d \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}-\frac {5 \ln \left ({\mathrm e}^{d x +c}+1\right ) b}{2 d \left (a^{4}+4 a^{3} b +6 a^{2} b^{2}+4 a \,b^{3}+b^{4}\right )}+\frac {15 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{a}+1\right )}{16 \left (a +b \right )^{4} d}-\frac {5 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{a}+1\right ) b}{8 a \left (a +b \right )^{4} d}-\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{a}+1\right ) b^{2}}{16 a^{2} \left (a +b \right )^{4} d}-\frac {15 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{a}+1\right )}{16 \left (a +b \right )^{4} d}+\frac {5 \sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{a}+1\right ) b}{8 a \left (a +b \right )^{4} d}+\frac {\sqrt {-a b}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}\, {\mathrm e}^{d x +c}}{a}+1\right ) b^{2}}{16 a^{2} \left (a +b \right )^{4} d}\) | \(833\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 10990 vs.
\(2 (195) = 390\).
time = 0.58, size = 20341, normalized size = 95.50 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {csch}^{3}{\left (c + d x \right )}}{\left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right )^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {cosh}\left (c+d\,x\right )}^6}{{\mathrm {sinh}\left (c+d\,x\right )}^3\,{\left (a\,{\mathrm {cosh}\left (c+d\,x\right )}^2+b\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________